package com.hxd.otc.module.fiat_deal.contract;

import com.hxd.otc.module.fiat_deal.adapter.DealAdapter;
import com.hxd.otc.module.fiat_deal.bean.DealRequestBean;
import com.hxd.otc.module.fiat_deal.bean.DealResultDataBean;
import com.hxd.otc.module.fiat_deal.bean.DealTeamBean;
import com.hxd.otc.module.order.bean.AllOrderBean;
import com.hxd.otc.mvp.contract.BaseRecyclerContract;

/**
 * Created by lzy on 2018/9/17 0017.
 * description ${交易列表Contract}
 */
public interface DealListContract {
    interface View extends BaseRecyclerContract.View<DealAdapter, DealResultDataBean.Data> {
        void buySuccess(AllOrderBean.DataBean orderInfo);

        void onResultError(int errType, String errMessage);

        void saleSuccess(AllOrderBean.DataBean orderInfo);

        void onDealFail();
    }

    interface Presenter extends BaseRecyclerContract.Presenter<DealResultDataBean.Data> {
        void setDealType(int dealType);

        int getDealType();

        void setCoinType(String coinType);

        String getCoinType();

        void setFiat(String fiat);

        String getFiat();

        String getTransactionPair();

        void dealBuy(DealRequestBean bean);

        void dealSale(DealRequestBean bean);

        void setDealTeamBean(DealTeamBean dealTeamBean);

        DealTeamBean getDealTeamBean();

        void setBankTypeValue(String bankTypeValue);

        String getBankTypeValue();
    }
}
